package com.ruoyi.richEditor.mapper;

import java.util.List;
import com.ruoyi.richEditor.domain.RichEditorAttachment;

/**
 * 富文本编辑Mapper接口
 * 
 * @author chengliang
 * @date 2021-11-01
 */
public interface RichEditorAttachmentMapper 
{
    /**
     * 查询富文本编辑
     * 
     * @param id 富文本编辑主键
     * @return 富文本编辑
     */
    public RichEditorAttachment selectRichEditorAttachmentById(Long id);

    /**
     * 查询富文本编辑列表
     * 
     * @param richEditorAttachment 富文本编辑
     * @return 富文本编辑集合
     */
    public List<RichEditorAttachment> selectRichEditorAttachmentList(RichEditorAttachment richEditorAttachment);

    /**
     * 新增富文本编辑
     * 
     * @param richEditorAttachment 富文本编辑
     * @return 结果
     */
    public int insertRichEditorAttachment(RichEditorAttachment richEditorAttachment);

    /**
     * 修改富文本编辑
     * 
     * @param richEditorAttachment 富文本编辑
     * @return 结果
     */
    public int updateRichEditorAttachment(RichEditorAttachment richEditorAttachment);

    /**
     * 删除富文本编辑
     * 
     * @param id 富文本编辑主键
     * @return 结果
     */
    public int deleteRichEditorAttachmentById(Long id);

    /**
     * 批量删除富文本编辑
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRichEditorAttachmentByIds(Long[] ids);
}
